package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.XxScheduleManagementUserRoleMapper;
import com.ruoyi.system.domain.XxScheduleManagementUserRole;
import com.ruoyi.system.service.IXxScheduleManagementUserRoleService;
import com.ruoyi.common.core.text.Convert;

/**
 * 雄信权限相关用户_角色Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-12
 */
@Service
public class XxScheduleManagementUserRoleServiceImpl implements IXxScheduleManagementUserRoleService 
{
    @Autowired
    private XxScheduleManagementUserRoleMapper xxScheduleManagementUserRoleMapper;

    /**
     * 查询雄信权限相关用户_角色
     * 
     * @param id 雄信权限相关用户_角色主键
     * @return 雄信权限相关用户_角色
     */
    @Override
    public XxScheduleManagementUserRole selectXxScheduleManagementUserRoleById(Integer id)
    {
        return xxScheduleManagementUserRoleMapper.selectXxScheduleManagementUserRoleById(id);
    }

    /**
     * 查询雄信权限相关用户_角色列表
     * 
     * @param xxScheduleManagementUserRole 雄信权限相关用户_角色
     * @return 雄信权限相关用户_角色
     */
    @Override
    public List<XxScheduleManagementUserRole> selectXxScheduleManagementUserRoleList(XxScheduleManagementUserRole xxScheduleManagementUserRole)
    {
        return xxScheduleManagementUserRoleMapper.selectXxScheduleManagementUserRoleList(xxScheduleManagementUserRole);
    }

    /**
     * 新增雄信权限相关用户_角色
     * 
     * @param xxScheduleManagementUserRole 雄信权限相关用户_角色
     * @return 结果
     */
    @Override
    public int insertXxScheduleManagementUserRole(XxScheduleManagementUserRole xxScheduleManagementUserRole)
    {
        return xxScheduleManagementUserRoleMapper.insertXxScheduleManagementUserRole(xxScheduleManagementUserRole);
    }

    /**
     * 修改雄信权限相关用户_角色
     * 
     * @param xxScheduleManagementUserRole 雄信权限相关用户_角色
     * @return 结果
     */
    @Override
    public int updateXxScheduleManagementUserRole(XxScheduleManagementUserRole xxScheduleManagementUserRole)
    {
        return xxScheduleManagementUserRoleMapper.updateXxScheduleManagementUserRole(xxScheduleManagementUserRole);
    }

    /**
     * 批量删除雄信权限相关用户_角色
     * 
     * @param ids 需要删除的雄信权限相关用户_角色主键
     * @return 结果
     */
    @Override
    public int deleteXxScheduleManagementUserRoleByIds(String ids)
    {
        return xxScheduleManagementUserRoleMapper.deleteXxScheduleManagementUserRoleByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除雄信权限相关用户_角色信息
     * 
     * @param id 雄信权限相关用户_角色主键
     * @return 结果
     */
    @Override
    public int deleteXxScheduleManagementUserRoleById(Integer id)
    {
        return xxScheduleManagementUserRoleMapper.deleteXxScheduleManagementUserRoleById(id);
    }
}
